package com.ygqh.baby.mapper;
import com.ygqh.baby.po.YgProductBookDetail;
import com.ygqh.baby.po.YgProductBookDetailExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
public interface YgProductBookDetailMapper {
    int countByExample(YgProductBookDetailExample example);

    int deleteByExample(YgProductBookDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgProductBookDetail record);

    int insertSelective(YgProductBookDetail record);

    List<YgProductBookDetail> selectByExample(YgProductBookDetailExample example);

    YgProductBookDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgProductBookDetail record, @Param("example") YgProductBookDetailExample example);

    int updateByExample(@Param("record") YgProductBookDetail record, @Param("example") YgProductBookDetailExample example);

    int updateByPrimaryKeySelective(YgProductBookDetail record);

    int updateByPrimaryKey(YgProductBookDetail record);
    
    int countSuper(@Param ("q") String q);
    
    List<YgProductBookDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q);

	void insertBatch(@Param("detailList")List<YgProductBookDetail> productBookDetails, @Param("id")Long id);

	void updateStatus(@Param("dataStatus")String dataStatus, @Param("id")Long id);
	Map<String,Object> getBookDetailById(@Param("id")Long id);

	List<Map<String, Object>> selectSuperByBookId(@Param ("bookId")Long bookId);
    
}



